package grape.base.rest.message.vo;
import grape.base.service.dict.api.IDictService;
import grape.base.service.user.api.IUserService;
import grape.common.rest.vo.BaseIdVo;

import grape.common.service.trans.TransBy;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 消息表
 * </p>
 *
 * @author yangwei
 * @since 2020-03-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="消息数据响应对象")
public class MessageVo extends BaseIdVo<String> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "消息标题")
    private String title;

    @ApiModelProperty(value = "消息简介")
    private String shortContent;

    @ApiModelProperty(value = "消息内容")
    private String content;

    @ApiModelProperty(value = "业务类型字典id")
    private String businesstypeDictId;

    @TransBy(type = IDictService.trans_dictCode,byFieldName = "typeDictId")
    @ApiModelProperty(value = "业务类型字典编码")
    private String typeDictCode;

    @ApiModelProperty(value = "业务数据id")
    private String businessId;

    @ApiModelProperty(value = "消息分类id")
    private String typeDictId;

    @TransBy(type = IDictService.trans_dictName,byFieldName = "typeDictId")
    @ApiModelProperty(value = "消息分类名称")
    private String typeDictName;

    @ApiModelProperty(value = "是否已发送")
    private Boolean isSend;

    @ApiModelProperty(value = "发送人id")
    private String sendUserId;

    @TransBy(type = IUserService.trans_type_userNickname,byFieldName = "sendUserId")
    @ApiModelProperty(value = "发送人昵称")
    private String sendUserNickname;
}
